/*---------------------------------------------------------------------------
// 
//  File:  hc.h
//  Purpose:  Host Universal Architecture: hc resource
//  History:  2014-04-22 Created  
//
---------------------------------------------------------------------------*/
#ifndef _CI_HC_H
#define _CI_HC_H


#include "common.h"




#ifdef __cplusplus
extern "C" {
#endif


#define CI_HC_TAG_TUNE			0x9F8400


typedef struct
{
	unsigned short m_u16Ssnb;
	unsigned short m_u8Slotid;
}hc_ssnb_t;


typedef enum
{
	CI_HC_MESSAGE_TYPE_CONNECT,
	CI_HC_MESSAGE_TYPE_DATA,
	CI_HC_MESSAGE_TYPE_CLOSE,
}hc_message_type_t;

typedef struct
{
	hc_message_type_t m_eType;
	unsigned char		m_u8Slotnb;
	unsigned short	m_u16Ssnb;
	unsigned char*	m_pu8Apdu;
	unsigned int	m_u32ApduLen;
}hc_msg_t;


typedef void (*CiHcChangeChannel)(unsigned short, unsigned short, unsigned short);
void CiHcSetChangeChannelFun(CiHcChangeChannel func);


#ifdef __cplusplus
}
#endif



#endif	//_CI_HC_H
